home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFBIND / VSLWIDTH.S < prev    next >
Text File  |  1993-03-26  |  1KB  |  43 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5.  
  6. ;*------------------------------------------------------------------------
  7. ;* Set polyline width.
  8. ;*------------------------------------------------------------------------
  9.  
  10.           globl     _vsl_width
  11. _vsl_width:
  12. ;          .cargs    #8,handle.w,width.w
  13.  
  14. handle      =         8
  15. width      =         10
  16.  
  17.           link        a6,#-4                ;* Allocate ptsout[2].
  18.  
  19.           clr.w     -(sp)                ;* ptsin[1] = 0
  20.           move.w    width(a6),-(sp)     ;* ptsin[0] = width
  21.           move.l    sp,a0                ;* Save a pointer to ptsin.
  22.  
  23. ;          VContrl    #16,,#1
  24.           move.w    handle(a6),-(sp)    ; contrl[6]
  25.           clr.l     -(sp)                ; contrl[5,4]
  26.           clr.l     -(sp)                ; contrl[3,2]
  27.           move.w    #1,-(sp)            ; contrl[1]
  28.           move.w    #16,-(sp)            ; contrl[0]
  29.  
  30.           pea        -4(a6)                ;* -> ptsout
  31.           subq.l    #4,sp                ;* -> intout
  32.           move.l    a0,-(sp)            ;* -> ptsin
  33.           subq.l    #4,sp                ;* -> intin
  34.           pea        16(sp)                ;* -> contrl
  35.  
  36.           move.l    sp,d1
  37.           jsr        vditrap
  38.           move.w    -4(a6),d0            ;* Return ptsout[0].
  39.           unlk        a6
  40.           rts
  41.  
  42.           end
  43.